import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 词典表
 */
@Entity('dictionary')
export class Dictionary extends BaseEntity {
  @PrimaryGeneratedColumn({
    type: 'int',
    name: 'id',
    comment: '主键，自增',
  })
  id: number;

  @Column({
    type: 'varchar',
    name: 'dictionary_name',
    comment: `词典名称`,
  })
  dictionaryName: string;
}
